import { createSlice } from '@reduxjs/toolkit'

const countSlice = createSlice({
    name: "name",
    //存放数据
    initialState: {
        value:"/index/home"
    },
    //存放更改方法
    reducers: {
        changenum(state, actions) {
            state.value = actions.payload
        }
    }
})

export const { changenum } = countSlice.actions

export default countSlice